powered by
Once a VectorDistribution has been constructed, use [ to extract one or more Distributions from inside it.
VectorDistribution
[
Distribution
# S3 method for VectorDistribution [(vecdist, i)
VectorDistribution from which to extract Distributions.
indices specifying distributions to extract or ids of wrapped distributions.
# NOT RUN { v <- VectorDistribution$new(distribution = "Binom", params = data.frame(size = 1:2)) v[1] v["Binom1"] # }
Run the code above in your browser using DataLab